package com.groupseven.happycampus.mapper;

import com.groupseven.happycampus.common.bo.MenuBo;
import com.groupseven.happycampus.common.pojo.Menu;
import com.groupseven.happycampus.common.pojo.Restaurant_food;
import com.groupseven.happycampus.common.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CanteenMapper {

    List<Menu> MenuList(Map<String,String> parms);


    int removeById(@Param("id") int id);

    int updateMenu(Menu menu);

    int addMenu(Menu menu);

    int deleteAll(@Param("ids") String ids);
    int getallprice(@Param("menuId")Integer menuId);
    //模板导入数据库
    int addMenus(List<Menu> list);

    List<MenuBo> MenuExcelData(Menu menu);


    List<Restaurant_food> RfList(Map<String, String> params);

    int rfadd(Restaurant_food rf);

    List<Restaurant_food> rfTestList();

    int rfupdate(@Param("state")String state,@Param("id")Integer id);

    //要改表名！！！！
    User ProvePayUse(@Param("id")Integer id, @Param("paypassword")String paypassword);

    int addFoodUser(@Param("userId") Integer userId, @Param("menuId")Integer menuId,@Param("foodId") Integer foodId, @Param("out")Integer out);
    int getFoodUserId();
    int Pay(@Param("foodUserId")Integer foodUserId,@Param("out")Integer out);

    List<Menu> MenuList2(Map<String, String> params);
}
